Yes! Personification isn’t literal and provides a striking visual effect, which makes it a figure of speech.