In most systems, the answer is NO.
Reasons:
a)Functions such as malloc() are typically not re-entrant.
b)The allocation would take too long (defeats the rationale of an ISR).
Generally, knowing what you may and may not do from within an ISR is one of the really important design rules of a system ...