Seems like it would, but here's what the Rules of Golf says about it. Rule 8.1b(4) explains that an action that is allowed is to ground the club lightly right in front of or right behind the ball.
In golf, the size of the tee box is an imaginary rectangle. The width of the tee box is the space between the two tee markers. You can't tee the ball in front of them, and you can't tee the ball ...
It’s been going on three years now that Scottie Scheffler has made golf look really easy ... I would have been able to get my ball up over the rocks in front of me,” Scheffler said.