Can I use a regular button to open a new page?

Hi, multipage apps are cool, is there a way to go to a different page using a regular button too something like

if st.button(“Page 1”):
page1.main()

Right now I think the above code would just render the current page and page 1 in series