This is a superstitious statement, it can also be called folklore, a statement, but I don’t know whether it is accurate or not. Pumpkin is also called Japanese melon, which is homophonic for "coward". Another saying is that in the south, the pronunciation of "pumpkin" is similar to that of "sad". Placing a pumpkin at home means life will be sad and unlucky.