That's fine, but if you're put in the drunk tank overnight, and then refer to that as having been "locked up", then people will reasonably assume that you had spent several months or years in jail.
In context: Elizabeth Holmes has been locked up, while Anderson Lee Aldritch had a string of mental health evaluations before going on to commit mass murder.