While he shares some stylistic similarities with the Cavalier poets, like his focus on wit and the use of metaphysical conceits, Donne predates the Cavalier movement. He was born in 1572 and died in 1631, whereas the Cavalier poets flourished in the 1630s and 1640s.
Donne's poetry often dealt with more serious and complex themes like religion, love, mortality, and philosophical questions, whereas the Cavalier poets focused on lighter themes like love, courtly life, and enjoyment of life.
Instead of being a Cavalier poet, Donne is considered a Metaphysical poet, along with other prominent figures like George Herbert and Andrew Marvell. This group was known for its intellectual and philosophical approach to poetry, often using complex metaphors and conceits to explore abstract ideas.
So, while there are overlaps, John Donne is not considered a Cavalier poet but rather a prominent figure in the Metaphysical movement.