I would hope. In my experience, sometimes government offices can be specific about payments.
For example, my sister had to pay a speeding ticket and the courthouse only accepted cash and money orders, iirc.
It all depends on where you get arrested/whatever.