No, rules depend on jurisdiction and facts.
California Labor Code 2870, for example, limits some assignment claims for inventions made fully on your own time without employer resources. Local law and your contract still matter, so check before assuming a side project is clear.