Yes, if you have a consistent history of receiving it. Lenders typically look for a two-year track record and average the income. If your bonus or commission is increasing over time, that can work in your favor. Variable income is very usable — it just needs a documented pattern.
Please consult your Mortgage Advisor for guidance specific to your situation before making changes.