Margins are amazing. I’ve been using margins in CSS for over 20 years and it’s fine. Though I don’t use any fancy frameworks or things where encapsulation, copy/paste, etc will cause problems.
If you code HTML&CSS with W3C standards, you’ll be happier. Maybe I’m an old timer