Should URL structure mimic file structure?

Hello, I'm currently building a project where initially we have a hero page, then we login/register and we have the "content" page. Say for the hero page, its URL will be something like:
/
.

Now within that main page, I expect it to consider some sort of navigation bar which will link us to login or registration.

So upon login or registration, the URL will be: /login or /registration.

Now say I have successfully login or register, the URL should now be something like /home?

Does URL structure matters? When should I add prefixes etc, should it reflex my file structure?
Was this page helpful?
Should URL structure mimic file structure? - Kevin Powell - Community