Dipole-dipole interactions are electrostatic interactions between the permanent dipoles of different molecules. These interactions align the molecules to increase the attraction.
In order to form a dipole-dipole attraction, there should be a dipole moment for the considered molecule.
For an example: Water ($\ce{H2O}$)
It has a large permanent electric dipole moment. It's positive and negative charges are not centered at the same point; it behaves like a few equal and opposite charges separated by a small distance.
The permanent dipole in water is caused by oxygen's tendency to draw electrons to itself (i.e. oxygen is more electronegative than hydrogen). The 10 electrons of a water molecule are found more regularly near the oxygen atom's nucleus, which contains 8 protons. As a result, oxygen has a slight negative charge (δ-). Because oxygen is so electronegative, the electrons are found less regularly around the nucleus of the hydrogen atoms, which each only have one proton. As a result, hydrogen has a slight positive charge (δ+)
If we considered a NON POLAR molecule with POLAR BONDS as you mentioned; such as $\ce{CCl4}$ or $\ce{CO2}$
Molecules often contain polar bonds because of electronegativity differences but have no overall dipole moment if they are symmetrical. In the molecule tetrachloromethane ($\ce{CCl4}$), the chlorine atoms are more electronegative than the carbon atoms, and the electrons are drawn toward the chlorine atoms, creating dipoles. However, these carbon-chlorine dipoles cancel each other out because the molecular is symmetrical, and $\ce{CCl4}$ has no overall dipole movement.
Though $\ce{CO2}$ have polar bonds,it does not have a dipole moment, so it can not form dipole-dipole interactions.