No, purchasing an upgrade will not entitle you to lounge access unless your original ticket allows you free lounge access—such as if you upgrade from Business Class to First Class. However, you can purchase lounge access online via My Trips (Manage a Booking section) or by contacting your travel agent or Qatar Airways staff when you check in for your flight.