Learning the basics of guitar, be that electric or acoustic is the very foundation of everything else you'll do regarding playing one.
Sure you'll learn a lot once you get started, but it's also important that you do some research now. For example you may find that it is just too expensive for you to do right now or that you can't spare the time needed to practice.
In both cases you'll be glad of looking in to things more carefully instead of rushing out in a spur of the moment decision.
There are a few steps you need to take first and these are covered here - learning guitar basics