There was another thread asking about this fairly recently. I can’t find it right now.
You can certainly ask but I’d be prepared with an alternate plan in case it can’t be accommodated. If you need to prepare food in your room, you should reserve a room type including a kitchenette. There may be fire code rules against cooking (microwaves, toasters, hot plates, etc.) in standard hotel rooms that weren’t designed to include such devices.