You absolutely can! In fact, I have some recipes that use whole flower (check out our recipe index). However, just dumping your flower in a box of brownie mix without consideration is both highly irresponsible and the easiest way to get edibles that are too potent. It’s very likely you’re gonna have a bad time.
And if the taste is a concern for you, infusions have a much milder marijuana flavor.