Yes, both are useable and mean the same thing. However, for the sake of style, I would use the phrase at the beginning of the sentence: When I was a boy / As a boy.....
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.