Will Apple replace a damage iphone?

Will they replace my iPhone that got screen stains when I first bought it? Will the warranty still work as long as it's a year?

If the issue is through a fault of your doing, then no. You'd have to pay for it. Warranties cover damage through no fault of your own.