Openings are not that important for beginners. Opening principles are. Eventually through time you will learn little by little about openings you play.
So yes, if you play e4, that means that you will learn some moves against everything you have mentioned. As black, you will learn something against open sicilian, closed sicilian,c3 sicilian, smith morra...
How will you do it? You will build your knowledge slowly like building a house. When you analyze your game, you will see where you have made an inaccurate move thanks to the engine and opening database... That way you will play that variation a bit better next time.
That way you will learn openings without actually learning them. Only when you get a lot stronger, you might want to seriously study opening lines.
I have found myself in a losing position recently in the first five moves after playing e4. I found myself up against the Alekhine and Scandinavian specifically and I had never seen those openings and fell into a terrible position in the first few moves.
As a beginner I know I shouldn't* spend a lot of time on openings but I want to expand my knowledge so I don't find myself in an unknown situation on move 3.
I play e4 as white, does that mean I need to know how to play against all of the following?
As black I have started learning the Sicilian Dragon against e4 and the King's Indian Defense against d4, but what if my opponent plays the Closed Sicilian?
So the question I guess is, how familiar do I need to be with the e4 responses as white? How many lines should I know?
And as black how do I even go about knowing what variations are possible against me playing Sicilian and KID?