As your photo illustrates, that is strictly true, but I would suggest that it is probably very unlikely that a person who was happy to leave a socket attached to a pattress box lying loose on the floor would bother to hunt out one of those very few boxes which does have cable restraint.The fact that it's a white plastic box doesn't have to mean there is no cable restraint.
Kind Regards, John