The word "nucleus" means "central portion," or "core" of something. So yes, both an atom and a biological cell have a portion called a nucleus, but beyond that there is little direct similarity.