Sure... but that's far from the ideal world where we don't need to replace our lungs. Replacing lungs is very inefficient.
According to this, there's some level of lung rejection in 90% of patients.
https://utswmed.org/medblog/lung-transplant-rejection/
That's a lot of management for a critical system... even if it's treatable.