Nonstatutory stock option gain sale and offset for loss in other stock sale

can nonstatutory stock option gain sale which employer reported on W2 be used to offset a loss from other market stock trade reported on 1099-B?

Turbotax on its own doesn't do it, so very dangerous situation.