Use of 0W40 oil in engine that calls for 5W30 -Bad or good idea?

These sound like older vehicles with a lot of miles…They are a lot looser that when they left the factory, so 0-40 isn’t going to hurt anything except your wallet…