Quick translation. How do you translate the following into Russian.

If I don't get home by midnight, I will turn into a pumpkin.

My guess

Если я не вернусь домой к полуночи, я превращусь в тыкву.

Thanks in advance