Sports don’t generally work that way, especially in the US. If it’s not specifically against the rules but clearly should be, you get the old “great job! Never do it again!”
Motorsports generally have a rule like, "safety violation deemed at official's discretion". The wikipage on NASCAR rules looks like it has just such a rule.