No, they don’t attract rats but if you are facing this issue that means you need to pay special consideration towards the cleaning.
Regularly sweep and apply mop and do not let your deck be full of dirt. Moreover, remove leaves as soon as possible to avoid additional problems.