Is this the same principal for expressing "I was (age) years old."

You don't say "Мне был 15 лет", but "Мне было 15 лет". Is that correct?