Yeah, Wally and Barry both got their powers in the same way. Lightning bolt strike that threw them into chemicals. Barry was an accident, Wally was an accident on purpose as he wanted to be like his Uncle Barry. Only Jay Garrick, the first flash, has it as a innate power. But as mentioned these are comics, so even that is up for grabs depending on which comic your reading.