Hi Jonathan,
This logic already exists on the New Opportunity… button under the Opportunities tab on the stock Edit Customer screen. I suggest you have a look at this action set and simply copy it. It’s worth noting that opportunities are assigned to contacts, not customers, so I believe the main contact will be selected by default.
I hope this helps.
-Audisho