I'm sorry that I misunderstood you. There's no rule against it that I know of. It's a strategy of questionable effectiveness. Yes, if you would rather take a bullet for that goal than have someone else take it, that would probably work in most cases. Of course, you would need to be careful of any robots that have "the torque of God" or reinforced titanium goal grabbers that could pry the goal from between you and the wall

. In all seriousness though, if it's too early in the match, you may be adversly affecting your alliance's field position, which is crucial to effectively playing a match. However, if you're thinking of pinning a goal at the end of the match to secure 10+ points for either alliance, then go for it! Just be aware of the home zones.
~Hubicki~