It doesn't really matter. It just depends on what style your looking to learn first. Acoustic guitars are less awkward to start off as you don't need an amplifier and a cable, and they are cheaper to buy. If you want to go into the rock style straight away then an electric guitar isn't a bad investment, but generally for what you get in comparrison acoustic guitars are cheaper.
Check out this buyers guide for more advice.