You can, but it likely won’t be hardened in the same way as a made-for trailer hitch lock will be, and thus could rust or not protect your investment.