Burning lanterns to worship Buddha is a merit. After burning the lamp, you made a wish for the health of your family, that is, you prayed to come back, that is, you used the merits generated by your practice to achieve a certain goal (burning the lamp is also a kind of practice). So you have done all the things you should do, so you can work hard and live a good life.