Simulating motion sensor MPU

when i calculate the euler angle, i must use rotation matrix by multiply 3 rotation matrix
and i think: Euler angle is calculated on inertial frame.
is it right?