IR’s do include the room’s response however, the impact of the room, even with near field micing can be small to significant depending on the room.
One thing to remember is that measurement mics are almost always small diaphragm omnidirectional which is why the room impact can’t be entirely avoided.
In theory, you could take an impulse response of the room at that mic position with the cabinet off and another impulse with the speaker on and subtract the room from the speaker plus room and be left with the room. How practical this is is unknown.