Depends on the repair. Never used to be possible to even get an aftermarket screen, although you can now. I have walked in with a broken screen on a current model phone to be told it can’t be fixed and they would use it as a trade in.
Fortunately, you can now get genuine parts from third parties.
A third party repair of a screen is about $175. Apple is over $250. Last time I had it quoted was a couple of years ago though, so YMMV.