No, hamsters and cockatiels do not get along and should not be housed together. Hamsters are small, ground-dwelling rodents that are easily stressed by larger animals. Cockatiels are larger, social birds that may view a hamster as prey or as a threat to their territory.
Additionally, hamsters can carry diseases that may be harmful to birds. For the safety and well-being of both animals, they should be kept in separate enclosures and supervised if they are ever in the same room.