Yes, it’s absolutely fine to leave your modem on 24/7. It doesn’t use much energy and it actually helps it stay cool, which prevents it from overheating and turning itself off.