Yes, onions and peppers cook at approximately the same rate. They can therefore easily be sauteed at the same time.