Yes, you can find an example in the documentation for event moving:
onEventMove: async (args) => {
args.async = true;
const modal = await DayPilot.Modal.confirm("Do you really want to move this event?");
if (modal.canceled) {
args.preventDefault();
}
args.loaded();
}