Dynamic memory allocation in configureHook

Hello,
can I do not real time things like dynamic memory allocation in
configureHook() of TaskContext ?

Thank you,

Philippe Hamelin