Ask a Business Lawyer. Get Business Law Questions Answered ASAP.
Generally it is totally legal... but there are some exceptions: public projects, that must be competitively bid, and projects that the Owner requires competive bids in the contract. Other than that, they can use whoever they want as a contractor.
Sorry, I know this is not what you hoped to hear. I try to be honest and just give it to you straight though, rather than just telling you what you want to hear, only to be disappointed later.