Respuesta :

Yes.

Your solution is a correct way to solve it. There is more than one correct way.