In theory, it is possible, if no other options are available. We do not recommend it, but If the thermostat is controlling the floor temperature with a floor sensor, then it can go on an exterior wall. It is important that the floor sensor gets located in an area of the floor not hit by sunshine.
If the thermostat will be controlling the air temperature with the built-in ambient sensor, then it should go on an interior wall.