How create template page in custom theme & register it via theme's functions file + permali

Can I create a .php page in my custom theme without using the admin dashboard to assign a page to the template first and if so, how do I register the page in functions.php and create a slug or permalink for it so a request for /pagename will utilize the new page? Thanks!