The phrase can be used and does not mean the same as WTF! It is however not very common.
We use it when something bad could have happened but in the end it didn't.
For example, "I was really worried about my medical tests coming back with bad news, but they didn't, thank heavens! What a scare!"