I'm assuming you're talking about booking a flight directly with thankyou.com/ultimaterewards and not transferring the points to United and redeeming them for an award flight.
Flights booked on thankyou.com are essentially purchased from the airline, so you do earn miles, .etc. I assume it's the same with Ultimate Rewards.