same amount of syllables is important, but whats more important is having the same or similar length of time on each line... like luminous said, if you make a pause, as long as first line + pause = 2nd line its gonna sound ok, but without the pause it prolly would sound weird with the beat
^ yes i prolly realise i have no idea wtf im talkin about but hey, i tried