Creating/Connecting to AtlasProject via Terraform


My question is: Is it possible to create an AtlasProject if it does not exist or connect to an existing one using Terraform? I would like these two functionalities to work together because when I attempt to create a mongodbatlas_project resource and it already exists, I receive the following error:
POST: HTTP 409 Conflict (Error code: "GROUP_ALREADY_EXISTS")

I am wondering if there is a way to check if the project already exists, and if it does, have Terraform connect to it; if not, create a new project.

Thank you,