Emirates and Qantas booking

When I book a codeshare flight can I still apply for a UAE visa online?