Canned pumpkin

I have been searching around and can’t seem to find an answer. Pre-pregnancy I made overnight oats with canned pumpkin puree. Is that safe to eat while pregnant? I’ve seen recipe ideas for those that are pregnant that include pumpkin, but it’s in stuff that’s baked. I just didn’t know if basically eating it straight from the can is ok since I don’t microwave the oats and just eat it cold.