If you don't have a 'D' after your name, then no, it's not legal.
The DNC got caught getting money from the Chicoms back in the 90s, and I think they had to refund it.
The rule of law is pretty much defunct in the US these days.