Short answer: No. Rear hub drive bikes can be very fast on flat land. On steep and sustained hills, they will go into thermal protection mode and limit or cut power entirely.
It's still a good idea to test a bunch of bikes before you buy if you're able. My first bike which I bought online...