Will apple replace my broken iPhone if the screen is cracked?

So my iPhone's screen cracked about two weeks ago, at that time it was fully working but now it stopped working cz of some fault inside, not sure why (the half of the screen went black with the white screen of death) so I'm taking my iPhone to apple store tomorrow, do you guys think the cracked screen will affect that they will replace the phone for free? Once I've got my cracked iPad replaced cz the fault showed up after the crack, but I'm worrying about the iPhone cz I've heard there's some new rules about repairs and suff so please, help if you guys know something about this.thanks.

Added (1). I don't understand why some of the answers are negative, as I've said, the phone broke but itself, it broke after the screen was cracked and the exact thing happened with my iPad 3 months ago and they replaced it for free cz at that time the home button stopped working after the whole screen cracked cz i dropped it weeks before the button broke bu I'm just worrying about the iPhone cz I've heard about the new rules so I'm asking if there's someone out there who has some closer info about this

They will be happy to make any repair that you are willing to pay for.

They won't replace it, they will repair the iPhone screen for a fee.

Do you work for free? I'm guessing no, so I wouldn't expect them to either.

If you are sending it to them for repairs. You would have to pay for it but they will replace it not repair it.