No, it is not mandatory but providing the bank details will become mandatory in case of refund applications or any other receiving payments.