Depressed and pregnant

Should I let my doctor know I'm depressed at my next appt , my nephew just passed the other day.... I have horrible thoughts.