Yeah we have words with a certain gender, the same with French, Spanish etc. You just put a at the end, for mostly feminine based words
Ik Arabic I stayed in uae for 8 years but never knew pencil is female