Yes. If a peace officer reasonably believes a safety risk exists, he/she may temporarily disarm you. Be courteous and non-confrontational and follow directions IMPLICITLY!
Most likely the firearm will be checked to see if it has been reported stolen. Upon completion of the traffic/Terry stop, your firearm will be most likely returned to you (as long as you are FREE to go).