Can I use Conitoidentityid as a unique value for a user?

I want to map a unique value to a Users table which would point to a unique cognito user in a user pool. Is cognitoidentityid a static value? Can I use it as a hash key for dynamodb?