Just Condom

Is using just a condom and lube safe?

(I struggle with anxiety and the pill makes me develop strong depression and unbearable anxiety so we’ve been using just a condom but I’m still nervous since we don’t have that back up of the pill.)