Yes, you would use the Last error , but you need to set the fsync flag (and / or the replication parameter , depending on your definition of "safe"):
# force fsync
> db.runCommand({getlasterror:1,fsync:true})
# wait for replication to one other server (w = 2)
> db.runCommand( { getlasterror : 1 , w : 2 } )
, fsync . "" ( ). ( , , ).