"The worst thing that can possibly happen is when you want to make something and you can't because of lack of technique or music knowledge."
I have followed this philosophy since I started making music and these are the words by Joe Satriani. I may have paraphrase it but the whole sense of the sentence is the same.
I agree with
@crosstevsky that it all starts with a vision but if you don't have means to realise that vision it is useless. For me the technical aspect of music has been always very important. Answering your question, I did learn music theory and basics of music production. I was also practicing both playing an instrument and producing for hundreds or even thousands of hours. I didn't do this for the sake of just doing it, I was doing it so I was not limited by anything. I did have the urge to make music from the very first moment I took an instrument in my hands and I tried to express my thoughts but it took me some time to actually start doing.
So in my opinion technique and knowledge about music (not necessarily music theory) helps you translate and convey your musical ideas to other people and this is very important.