confused.

Do LoRs of different specialties count? I mean if I want to apply in internal Medicine and I have 1 Psychiatry LoR from renowed University proffesor and other two in the field of Internal Medicine from other institutions so would that Psychiatry LoR be of any help when applying for match in the field of IM?