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.
One of golf's oldest ... benefit from setting the club down in front of the ball. You might wonder how the rules-makers define "lightly." And they do discuss it. “Ground the club lightly ...