Yes, it is perfectly okay to wear your favorite shirt when cooking dinner at home. There are no strict rules or dress codes for cooking at home, so you can wear whatever you feel comfortable in, including your favorite shirt. Cooking can be a messy activity, though, so you may want to consider wearing an apron or taking precautions to prevent any stains or spills on your favorite shirt.