Yes, Bloons Tower Defense 4 is safe to play.
It's a well-established tower defense game with a long track record, and it doesn't carry the kinds of risks you'd worry about with sketchy downloads. As with any game, the safest approach is to grab it from an official or reputable source.
So go ahead and start popping those bloons with peace of mind.