Our school follows different dates range for calculating the payroll instead of a calender month. Can we define the dates to consider for payroll?

Yes, you can set the date range to consider for payroll generation against each month. You also cancel the payroll generated for the month on the same screen.

Path: Settings/ HR /Payroll month settings