I think it really depends on your situation. If you can service / pay off the debt with certainty without adding any significant risk then I think it's a useful tool.
I took on debt to buy Bitcoin through a signature loan from my local credit union during the COVID crash at a btc price of about $6k. It worked out well for me but I never put anything at significant risk and I knew the price at the time was extremely under valued.