Taking Sciences Courses at an Accredited American University Abroad

Does anyone know if med schools in general accept science courses at an American university located abroad as eligible to fulfill the science requirements?

For example, I am looking at St. Louis University in Missouri that has a campus in Madrid, which is also an accredited 4 year US university teaching courses in English. My partner is European, and I currently live in Europe. We have opportunities to move back to the States in a few years, but for now, it’d be great to be able to complete the requirements closer to where I live.