Well, you should always try figure out after the game what went wrong, and how you could have played better. That counts for the opening, middlegame and endgame.
But it's useless to play moves that you don't understand -- you won't know what to do in a slightly different position, and when your memorized moves run out you don't know what to do again.
You might end up at a strategical disadvantage if the opponent plays the opening better than you do, but the same holds for any other phase of the game, and it's usually a lot more lethal if it happens in the middlegame.
As a novice just starting out on chess (chess.com ELO 1100 - 1200), I am unsure whether I should learn opening theory (this is important - by "learn", I mean that I will study and actually understand why the book lines are the best). I will attempt to explain my predicament below:
When I play with other beginners using the Live Chess feature, I meet two groups of people: 1. the ones who don't know opening theory (it's quite obvious from their opening moves) and 2. the ones who do. When I meet people from 1., a 'good' game will result and I have a fair chance of winning (or losing).
However, things become quite different when I play with people from 2. Some of my opponents know the openings I play rather well and I have a positional disadvantage later on in the game because of not-so-good opening play on my part. Pyschology also plays a part in my game - I am sometimes rather afraid of playing a 'bad' move which may result in a strategical disadvantage, especially in openings I am unfamiliar with.
A few things you should take note of before attempting to answer my questions below:
1. I am aware of the basic opening principles, which I attempt to fully utilise in all of my games.
2. As white, I prefer to play 1. e4, and my opponents frequently respond with 1 ... e5.
3. As black, I will respond with 1. ... e5 if my opponent plays 1. e4, or 1... Nf6 if my opponent plays 1. d4
4. I am a beginner.
So, the crux of the matter:
1. Are my fears justified? Will a strategical disadvantage result for me (at the level I am playing) if I don't playing an opening well?
2. Should I learn (study and understand book lines) a FEW openings which are useful for my game?
3. If the answer is "yes" to 2., which openings should I learn, based on the information I gave above?
I am hoping that intermediate and advanced players (ELO > 1500) with a fair amount of experience can answer my questions.