Yes, PHP scripts do not have to reside in a particular directory and will run anywhere on your virtual server.