Hello Nandini,
Hope you are doing great. You need not be a graduate to become a commercial pilot i.e. a bachelor's degree is not necessarily required to be an airline pilot.
However, some airlines do require it, while others do not. Therefore, having a degree will give you greater options. Also, a degree would leave you in a better position if a medical issue were to prevent you from flying professionally.
Hope this helps.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile