Application event manager APP_EVENT_SUBMIT inside timer expiry - is it allowed?

Hello

I am developing an application in which I am using a timer expiry function to submit an event periodically. My application is using the Application Event Manager.
My question is that if it is allowed (safe) to submit an event, using the APP_EVENT_SUBMIT(event); inside the expiry function of a timer?

My code is the following:

static void sample_timer_expiry(struct k_timer *dummy){
	struct app_module_event *app_module_event = new_app_module_event();
	app_module_event->type = APP_EVT_GET_SAMPLE;
	APP_EVENT_SUBMIT(app_module_event);
}
Related