# is gravitational force dependent on objects radius?

I was told that objects with the same mass but different sizes (or densities) will have a different gravitational pull. Is this true? If so, why?

-

$$\vec{F} = -\frac{Gm_1m_2}{r^2}\hat{r}$$