Also depends on where you live. For example, in Washington an employer cannot claim ownership of something you built in your own time, assuming that you didn't use any of their resources.
If nothing else, it will make your life easier if you ever want to take on funding for your new business.