Yes, if you see # at the left of the command you typed (instead of $), then you are already root and don't need to type sudo.