Yes, but those two actions were completely different. Kirk and Spock were stranded on Earth three centuries before they were even born. When confronted, Kirk admitted to stealing the clothes because they had no money.
Mercer, on the other hand, had a starship in orbit that could have synthesized their clothes in…