I would not invest long term using margin. The interest rates would likely eat any profits unless you got lucky on a bet.
Short term, though? Nah, you should absolutely trade on margin.
I started investing in 2020 immediately after markets hit rock bottom from COVID. Margin multiplied my gains as I bet on the market bouncing back.
You could certainly argue that I was just lucky. I could have easily been wrong and it's possible markets could have taken a longer time to recover than I expected. But tbh, the market recovered significantly FASTER than I expected.