How to use the functions in the action hook?

I wonder if the logic below is correct and if certain circumstances should be present for it to work, because in some cases it does not seem to work.

The example below is quite simple. Let's say I want to use a function, defined elsewhere in a file related to a theme, say parent_theme_hooks.php, through an action hook in my kid theme functions.php.

parent_theme_hooks.php

function is_enabled () {
return true;
}

function check_if_enabled () {
do_action (& # 39; my_hook & # 39 ;, some, $ args);
}

Then in the theme of the child functions.php

function my_function ($ some, $ args) {
if (is_enabled ()) {
$ message = yes;
} other {
$ message = no;
}
echo $ message;
}
add_action (& # 39; my_hook & # 39 ;, my_function & # 39 ;, 11, 2);

Question
So my question is if I can use the function is authorized() in the theme of the child functions.php when is it defined elsewhere in the parent theme?

Thank you