When the force F is large enough both blocks will be lifted, but if the force is not large enough , the heavy one will be supported by the base.
You can study the following simulation.
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.