Yes, talking to oneself is known as intrapersonal communication. It isn’t always a sign of madness.