Strictly speaking: carbs are not necessary...
There are essential fatty acids,
there are essential proteins.
There are no essential carbs. Carbs can always be synthezised by your body.
But that's ok. Having a few carbs in your diet will not harm you.