Yes if the insurance company totals your car you can still get it back and keep the vehicle since it's still legally your vehicle.
If you keep the vehicle then the auto insurance company will pay you the cash value of the vehicle but minus any deductible that is or was due at the time of the auto insurance claim.
If you don't want the vehicle after it's been totaled then the insurance company will likely sell it at auction and pay you the value of the vehicle or apply it towards the purchase price of a similar vehicle.