Yes. The TIE Advanced x1 ability doesn't prevent spending the lock in 2nd edition, though once it's spent, you don't get to change a hit to a crit (because you won't have the defender locked anymore, so change the hit to a crit first if you have any hits).
I should note that it's common to equip Fire-Control System. If you use its ability, that will block spending the lock. But that's separate from the x1 ability.