Yes. You shouldn't travel if there is less then 6 months before your passport expires when you enter Turkey, OR if there will be less than 3 months left to run when you leave (i.e. if you stay for 3 months or more). So you'll be fine.
i would say so as long as they dont expire 3 months before your return date and are valid for at least 6 months before you go. eg. if you were going for a fortnight in october but your passport ran out in december you wouldnt be able to go as you wouldnt have 6 months validity going into the country and you wouldnt have 3 months when you arrived back . thats how i would understand it anyway. does that make any sense at all? it did in my head!