Yes, in Ukraine, pumpkins were and are used as a sign of rejection.
> An old tradition held that a would-be suitor would visit a woman's house to propose. If the answer was yes, there was family toasting and celebration. If no, the poor guy was silently handed a pumpkin.