Husband and wife commit crimes at the same time, can they hire two lawyers from a law firm?

Of course. A lawyer cannot represent two opposing agents in a case, but both parties can entrust the same lawyer.

Legal basis:

Article 34 of the Lawyers Law: A lawyer may not act as an agent for both parties in the same case.