Yes, you should brown the ground meat with diced onions until it is cooked through and drain off any excess fat before adding it to your casserole dish.