I can understand that the idea you mentioned is related to a philosophical concept known as solipsism.
Solipsism is the belief that the self is the only thing that can be known to exist and that everything else, including other people and the external world, may be creations of the mind. In this view, it becomes challenging to be certain about the objective existence of anything beyond one's own consciousness.
While solipsism is an intriguing philosophical concept, it is also a topic of much debate and criticism. Most people don't fully embrace solipsism as a practical worldview because it can lead to skepticism about the external world and hinder meaningful interactions with others.
In everyday life, we typically operate under the assumption that the external world and other people exist independently of our thoughts and experiences. This perspective allows for the shared reality and the ability to communicate and interact with others in meaningful ways.
If you find yourself deeply contemplating solipsism or similar philosophical ideas, it can be an interesting exercise in self-reflection and introspection. However, it's essential to balance such contemplation with an appreciation for the practical realities of human existence and the shared experiences we have with others in the world. Philosophical ideas can be fascinating to explore, but they should not hinder your ability to engage with and connect with the world around you.