There is a definitive answer.
You will not receive miles for Copa Airlines flights in the United Airlines Mileage Plus program, as Copa Airlines is not a Mileage Plus partner for mileage earning. If you have a OnePass account, you may use it to earn miles for your Copa flight, as well as for your flying on United.