No, you program BOTH the PLC and the HMI with the laptop.
The PLC reads the inputs, evaluates them, then sets the outputs accordingly.
The HMI is a Human-Machine-Interface. It is an easy way for the operator to see specially presented information from the PLC about how the process is running or to be able to input various parameters (speeds, recipes, etc.) into the PLC to define how the process will run. The HMI has no control capabilities. It's merely a "window" into the process.
The PLC can run without a HMI. The HMI, without a PLC, is deadweight...
Think of your computer. The CPU box is like the PLC, processing and evaluating information, setting output actions based on that action, etc. Windows, Linux, ..., is like the HMI.