The answer looks correct. You can easily check if it's correct yourself by finding the derivative and plugging it back into the equation.
If you also want to see why write
the equation is seperable and can be written as
so
then taxing the exp of both sides and writing the arbitrary constant as C = ln c gives the solution as you have it