Well... it may work, and may not work... weed is more effective when eaten with an empty stomach... if you eat weed and eat a lot of food also, the THC will be more "diluted" into your stomach, and it may be enough for impair (sometimes heavily) its effects.
So, you are welcome to try and tell us your results... but, unless you eat only a small amount of food and use a reasonable amount of weed, probably you will get only mildly high.