Is the World Space synced with real world compass headings?

Are the X and Z axes aligned with true North and the East-West accordingly and is the y-axis of the world space aligned with gravity? If not, how can I achieve this?

Alright, I’ll answer my own question and say no. Printing my object’s rotation, the world space appears to be determined by the start position and rotation of my physical device. Basically, starting the app shows a value close to 0 (or 360) degrees on my Y rotation (euler angles). Turning around, my Y rotation changes by 180 degrees, but if you restart the app, the world space again gets reset to close 0 degrees.

For my use case, I am trying to place objects relative to real world compass bearings by calculating the direction between 2 coordinates (latitidue and longitude). Obviously this direction will be wrong, so long as my world space keeps changing and is not aligned with compass directions (NS-EW) in any way. Right now I am looking for a way to rotate THE WORLD SPACE (not rotating an object in world space), so that I can align the world space’s axes with true North (obtained by the device). I am ok if the result is unstable (due to unstable device input), but I need the result to be accurate.