Driving licence for expat in belgium

Hello, i am from morocco ( african country ) and i don't have a driving licence. I am soon moving to brussels for work and i was wondering if it s possible for expats to take their driving licence in belgium or they have to do it in their own country.
Please if someone already got his driving licence in belgium, i would like to know how much does it cost ( in total) and how much time does it take. And if the courses giving in the schools are mainly enough to learn really how to drive ?
Thank you very much.

Yes, you can apply for a belgian driving license after you arrive here and received your RP.

For more info kindly check below
https://www.expat.com/en/guide/europe/b … lgium.html