Yes, hamsters can eat bananas and carrots in moderation. These fruits and vegetables provide essential vitamins and minerals, but should only be offered as occasional treats, along with their regular diet.