Yes, you can. But for this recipe, I recommend cooking the beef with the onions and garlic to maximize the flavor. I also think the texture of cooked ground beef is much better.