Latin poetry could get very ‘flexible’.
Ovid is the worst offender in that department. He basically took all the words he wanted to say and arranged them in order to achieve the perfect rhythm. Because Roman poetry wasn't about rhymes, but rhythm.