Yes that will be fine.
Remember that .
Therefore .
You can only reverse it if the signs are the same and the number before the y is the same, and in this equation, yes you can.
If you had (y+2)(y-3) then you would not be able to switch the 2 & 3 because the signs are different (unless you moved the signs as well).
Also, if you had (2y-2)(y-3) then you would not be able to switch them because the number before the y is different.
But in your case, the signs and number before the y is the same, so you can reverse the positions of the 2 and 3.