Love's Labour's Lost.
In a metaphor where two objects are identified such a transference of attributes is quite permissible. Moreover, although 'shriek' is the more common word, 'groan' is used of the mandrake:
Would curses kill, as doth the mandrake's groan,
I would invent as bitter searching terms, &c.
2 Hen. VI, III. ii. 310.
In the Elegie upon ... Prince Henry (p. [269], ll. 53-4) Donne writes:
though such a life wee have
As but so many mandrakes on his grave.
i.e. a life of groans.