There is a school of thought (which I subscribe to) that EVERYTHING within the song should be there purely to support the emotional message of the song and be designed for maximum listener engagement
Even number of bars (4, 8, 16) for sections is very common and is what a listener would expect to hear - so sticking to this format is the fastest route to listener engagement (as is sticking to an established structure - e.g.: verse, chorus, verse, chorus, bridge, chorus, chorus
However, great songs also have an element of "tension & release" - so if it supports the emotion of your song to do something that makes the listener feel "uncomfortable" (e.g. The lyrics might be describing tension, awkwardness etc.) then an odd number of bars could work really well, or even a single bar of a different time signature, to create this tension before releasing it with a standard length section
If you are writing "for yourself" or "for the art" then you can obviously do what you like and change things up however you want
If you are writing with a commercial slant, or even writing for maximum engagement from listeners, then it is a good idea to follow these kind of "songcraft rules" - and with any rules my advice is to fully embrace and understand them BEFORE you start breaking them, which will maximise your chances of success (IMHO)