This is very true. Both giving and receiving attention to another human being is really important for the development of emotionally healthy connections. It is the foundation of authentic connection. This is why we've seen an epidemic of loneliness rise in step with our greater distractedness.
Giving and receiving attention is also a skill. You can get better at it.