Do you have to obey the rules when writing poetry?

If it is five words or seven words, you need to obey the rules. Metric is to make this poem more rhythmic and catchy.

If it is a modern poem, you can break the rules, but you should pay attention to the expression of the content. But also pay attention to the rhyme between sections.

Poetry should generally have the beauty of music, painting and architecture.