I got a piece of spaghetti in my finger nail. This morning I woke up and the finger looked puffy. What can I do about this? Do I need to see a doctor?

Puffy finger. Yes you do. It is quite likely that this has become an infection and will need antibiotics.
Soft spaghetti? I would use a nail brush to wash out any material under the nail. If there is spaghetti present which has hardened you can soak your finger in water & epsom salts & then use the nail brush to clean it out. If the finger becomes swollen, red, hot, tender or you develop red streaking - then would recommend a medical evaluation.