Both. Finials are often decorative but can also serve as end caps, stabilizers, or connection points for railings and posts.