Yes, they are — same man, two names.
Robotnik is the name used in the Western continuities, while Eggman is what the Japanese games call him. Sega eventually adopted Eggman more widely, but the character never changed underneath the localisation, so a Sonic fan can treat the two as interchangeable.