Yup just make sure it has a .php
extension and it should work.
Also if you are learning make sure to visit http://php.net
to note, if you're just starting out take a look at some of the String
functions and maybe play about with them. I am learning PHP and I always just create random stuff and play about with the functions to see what the result is. Due to doing this I have managed to implement certain codes to my actual site. I find it really cool to use the return value of one function as a parameter for another function.