Read: https://www.biblegateway.com/passage/?search=Numbers%2011%3A18-23%2C%2031-35&version=NASB
“The LORD said to Moses, ‘Is the LORD’S power limited? Now you shall see whether My word will come true for you or not.’” Numbers 11:23 NASB

Some tasks are so overwhelming they would never be accomplished without divine help from above. Moses had firsthand knowledge of this as he led the Israelite through the wilderness. Moses was reminded of the Lord’s unlimited power when faced with 600,000 angry, hungry people demanding meat to eat. Moses had a problem. The Lord told Moses the people would have meat to eat, to which Moses responded, “Should flocks and herds be slaughtered for them, to be sufficient for them? Or should all the fish of the sea be gathered together for them, to be sufficient for them?” (Num.11:22 nasb) Moses had an impossible task in front of him and questioned God in his frustration where he would get enough of meat to satisfy the entire bunch.
God already knew His intentions. He would supply the meat as only He can, but he was going to do so to teach the people a lesson for rejecting the Lord by crying out, “Why did we ever leave Egypt?” (Num.11:20 nasb) They grumbled against the Lord not being satisfied with the daily mana He provided. He gave them what they wanted. The Lord provided quail for an entire month until they became sick of it, and due to their sinful craving, and complaining against the Lord, a plague broke out before they finished the last bite.
We have two lessons here, first, the Lord’s power is not limited in any way. He is all powerful and He can supply our needs whatever our circumstances. The Israelites failed to realize God’s provision in the mana and craved for something more. Secondly, the Lord will give us what we want at times to teach us valuable lessons. Can the Lord do this, yes. He can supply all our needs, and yes, He will teach us the lessons we need to learn even if it’s in something we ask for.