What's considered harmful is unstructured programming.
Historically, goto was used where we would now use function calls, or braced if/else statements. (early programming language didn't even have these constructs)
The famous "Go To Statement Considered Harmful" paper from Dijkstra was published before C was created. The "goto" from C and C++ is mostly fine.