My rule of thumb is never tell the bank more than requested. However, it's pretty hard not to disclose your intention to flip it as most loan forms will ask if you intend to occupy the property. If they request information and you respond truthfully, that is loan fraud, which is a felony and pursued by FBI, not your local sheriff. I.e., if you tell them it will be owner occupied but you won't be living there for the first six months while you fix and flip it. Your not likely to be discovered though unless your insurance doesn't match up with the loan docs or if you default.
That being said, you'll want to make sure that there's no early payment penalties if you are planning a quick in an out flip. You might consider a hard money lender in the area as an alternative.
If the loan is a conventional loan intended for a buyer to occupy the property, then there is a section of the paperwork that asks you to verify that everything you and the lender have agreed to is true, including that the home is intended to be owner-occupied. If you do not intend to occupy the residence and sign the paperwork under false pretense stating that you do, then that is mortgage fraud and is a felony. Not the kind of stuff you should get into.
If you are go in and look for an investment loan, then they will prepare the paperwork and underwriting as such and the requirements and terms are quite different from a residential owner-occupied mortgage.
In a much shorter answer, yes you should be clear on your intentions of the loan when speaking with a lender.