Yes, they're just phrases (I don't say lord btw). Many revolve around religious. My theory is that geez came from Jesus, but people not wanting to say his name in vain perhaps, and that turned into gee (maybe, but who cares?).