No, to make successful Tap to Pay payments you have to necessarily unlock your device. If you tap a locked phone on the POS terminal with Paytm as the default NFC App then you will be prompted to unlock your device. Once you unlock the device you will be asked to tap your unlocked phone on the POS machine to make the payment go through.