No, logging out from your account will not affect your friend list. Your friends will still be able to see you on their list and can still send you gifts.