It depends, and a lot of this is subjective and variable.
Have you bought yet?
If so, when did you buy?
What circumstances are leading you to need to rent it out?
If you have not bought, and are just wondering if you can game the system and buy as an owner occupant to get the owner occupant rate, to then turn around and rent it, that is mortgage fraud and you should not do that. Just buy it as an investment property and pay the investment property rate, it's not that much higher, and it's better to tell the truth.
If you have lived there for a half of a year, for example, and there are circumstances that are causing you to need to rent it out, like a job relocation, or moving in with a significant other, or financial issues, then rent it out to do what you need to do.