Would you buy a car that had a valve body replaced

I see in the carfax that a valve body was replaced in the car 2 years ago. Is that a red flag or hey there’s a new one?