They are a tool that I use in my writing style, and I find that they are often effective in action scenes, suspense, or situations where sounds play an important role. Alternatively, I like the Action - Reaction approach, such as a simple and loud BOOM followed by a description of the explosion event.
Moreover, onomatopoeias can be formatted distinctively (italics or uppercase) to make them stand out. This can help capture the reader's attention and emphasize the impact of the sound. In my opinion, they add liveliness and a visual touch to the narration, making the action more immersive for the reader.
Of course, it depends on the genre: they work better in fantasy and science fiction, while in more serious or literary genres, their use should be more measured.