Depend on the issue you are having with the phone, if it's hardware wise issue then they will surely replace it for you, if it's a software wise issue then a simple factory restore should be able to cure the issue. Anyway, factory restore it before taking it to apple.