You can decent electronic music in Garageband, let alone Logic Pro.
I didn't come from a music-rich background and always wanted to make music too. So a couple years ago, I used Garageband and it took about 1 year to fully master every detail about learning music and producing (compressors, virtual EQs, filters etc...).
To answer your question; yes, you can Logic Pro for that. Logic Pro is used in top Billboard songs (obviously, it's not the only DAW).
I would suggest using Garageband first. It is extremely powerful and very easy to use. Once you outgrow it, or if you ever do, Logic would be the next step.