Not easily
the ramps 128x64 lcd requires 2 * 10 pin connectors the creality 4.2.7 only has 1 10 pin connector
the 4.2.7 is designed for creality displays. the color tft with encoder, the colour tft with touch. (both are serial devices) and the CR10_STOCKDISPLAY, which uses 1 10pin and doesnt have a sd on the display
You would need to make up a custom cable to emulate a CR10_STOCKDISPLAY