You asked:

is sodium nitrate an organic compound

No. Sodium nitrate is not an organic compound.
Sodium nitrate
Sodium nitrate
Sodium nitrate

organic compound
organic compound
organic compound