Some cars, including my Highlander, cut the 12v feed at the hitch when the key is turned off. Per my testing.
On the other hand, and I’m not completely sure if I’m remembering this correctly, several or multiple or all states require electrically activated trailer brakes to engage if a trailer...