However, it can be written in to a contract (and even then, you still might have a case for arguing it, should you choose! )
something is deemed work for hire if you created it while at a job which demands you be there full-time.