Is it safe to pull out a wall plug by the part in between the plug and the cord?

Even better! Less hardware to buy. Thx