No.
But I can tell you that playing close in baseball and softball is so hazardous that in some rule sets it is illegal.
As an example, on certain types of plays, a batter may be expected to sacrifice himself by bunting -- essentially tapping ball to a defender with a half swing to induce an out on himself that simultaneously allows other runners to move up. To execute the bunt in the best possible manner, the batter commits to bunting by putting himself into a bunting position early, sometimes before the pitcher's wind up, and when he does, corner infielders will rush in to get the ball early.
However, if the batter decides to decommit from the bunt and swing away -- an action called "the Butcher Boy Play" -- he can kill a charging infielder. Youth leagues have begun to prohibit that but it remains possible in the pros.
On rare occasion, infielders will group in a tight formation near a non-bunting hitter -- maybe 50 or so feet out. It is not technically illegal but in that occasion umpires have the discretion to deem that too risky to permit it or a distraction to the hitter who already has a lot to contend with. What you cannot have is a player in or so close to the trajectory of the pitch that it will be hard for a hitter to see a 100 mph pitch -- pretty common in the majors -- that could kill him, not that anyone would want to be in that spot in fear of being killed himself.
I am worried about the in-tight fielders and umpires because rarely a month goes by when there isn't a story about someone on the field and even sometimes in the stands getting maimed.
https://www.cbssports.com/mlb/news/...ing-white-sox-game-taken-to-chicago-hospital/ One unfortunate incident involved a major leaguer hitting his own mother with a batted ball.
Denard Span of Minnesota Twins hits mother with foul ball More recently, teams have been obliged to put up nets some distance down the sidelines to prevent additional injuries to audience members.