Arduino is based on C/C++ code, so learning C is a good starting point to learning how to code robots. If you want to learn C++, it's recommended you learn C first.