Yes, it would. Informally, it doesn't really matter which article is used though. You could say "It's on a hanger in the closet" even if there is only one hanger, and conversely, you could also say "It's on the hanger in the closet" even if there are multiple hangers.