To be on the safe side, no, it's better to use canned pumpkin purée. You could make your own pumpkin purée, but you want to make sure it's the same texture as canned. Too much moisture and this pumpkin filling won't set up.