Unless you use a part provided by Apple, and a repairer certified by them, you’ll get a warning about your replacement screen.
"More broadly, this restriction is the kind of gradual progression toward repair fear and uncertainty we were afraid we’d see after Apple’s independent repair program announcement. It allows Apple to further restrict the repair market to those who buy their parts and sign up for their certification."
https://www.ifixit.com/News/apple-is-discouraging-screen-repair-with-an-iphone-11-genuine-warning