Is crack an example of onomatopoeia?

Yes, crack is an Onomatopoeia. This is because an Onomatopoeia is when a word sounds like what it represents. In other words, you say it exactly how it is when you hear it.