Madrid Airport Terminal 2 to Terminal 1 Connection

Is anyone familiar with Madrid Airport enough to tell me:

if I land from Barcelona in Terminal 2, then need to walk to Terminal 1 to catch a connecting flight to JFK – will I have to go through Security to pass from Terminal 2 to Terminal 1?

I only have 1.5 hr connection (with only carry on sized luggage-not checked in).