Does sleeping on a hard carpet surface help improve posture?

Sleep surface. This is a preference and while a firm or hard surface does support your spine, many people can not sleep well on hard surfaces. It is more important to get restful sleep and improve posture with physical activity.
No effect at all. This will have virtually no effect on your posture.