yes, you can do that if you have custom kernel (ElementalX for example) on your Android 9. Just go in stock settings, disable official "double tap to wake" feature, then open any kernel manager (for example, EX kernel manager) -> gestures -> double tap to wake.
That's all. Now your phone will...