Yes, flight attendants can sleep on long flights in designated crew rest compartments. These areas, located above or below the main cabin, provide bunks for rest, ensuring they are well-rested. With salaries ranging from $75,353 to $103,418, their roles are crucial for passenger safety and comfort.