Yes, mathematics is very compulsory in order to study computer science. You need to have at least 60% knowledge of mathematics for a computer science degree.