You can, but I don't recommend it. Peppers and onions release water as they cook, and this can cause your meatloaf to be mushy or fall apart. Cooking them before adding to the meatloaf not only gives excellent flavor but also cooks down the liquid.