Depends on the bike and motor combo. Something like a mountain bike from the last 20 years would be fine, but I wouldn’t try and put one on like a road bike from the 70s or something. Basically anything that’s well built sturdy steel is going to be ok with the common sub kilowatt motors, but there are like crazy ones that will output considerably more power than that.
Also that’s going to be more applicable with a mid drive or a hub motor than something like this.