I have a 1997 Impreza Outback with the 2.2 Manual. I am looking for engines since mine blew. I found one close, and for cheap, but it is in an auto trans car. Does this matter?

Are the 2.2 engines interchangeable from Manual to Automatic transmissions and vs vsa?

Thank you all for your help.