The answer is yes, but with a few important caveats. At two weeks old, a hamster is still nursing from its mother. They begin eating solid food around this age, but they still need their mother's milk.
Suitable foods: Start offering a variety of hamster-safe foods, such as hamster food pellets, soft leafy greens like spinach and lettuce, small amounts of fruit such as berries or apple slices, and a few sunflower or pumpkin seeds as treats.
Supervision: Make sure the hamster can access its food easily and is eating.
If you have a two-week-old hamster, consult a veterinarian or experienced hamster breeder for guidance on weaning and diet. They can provide accurate information based on your specific hamster's needs.