1999 Ford Ranger - brake pedal still going to the floor

My brake petal is still going to the floor. I replaced everything but the master cylinder could this be the issue?

Yes. But it can caused by air in the system as well. Depends on how confident you are of your bleed.