Sometimes. However, certain requirements must be satisfied. You may be able to have an on-duty meal break if:
Your specific job prevents you from taking a truly off-duty break
You and your employer agree to the on-duty meal break in writing