I’m not sure to understand what you mean.
When you create and publish a post in WP, it gets automatically archived, meaning it automatically appears in an archive page (i.e. when you browse your blog’s categories or on a date-based page).
The wp_get_archives(‘type=monthly’) function returns a list of months where blog posts have been posted. Each of these months are clickable, and brings you to an archive page where all posts published in this month are shown.