It's pretty important to have a stroke, but the knowledge needed to create the stroke comes first. The main thing is learning all the hits on the cue-ball, different englishes and ball speeds.
After you've acquired that stroke and knowledge, then the mind and the self-confidence will come naturally.