What is the problem you are trying to solve?
Did you mean to ask, “Can we set the _id property to a value of a type other than ObjectId?”
If so, the answer is yes, you can set the _id property to a value of any type except array, per https://docs.mongodb.com/manual/core/document/.