StoreKit2: Do I need to implement environment check?

Do I need to implement the environment check for sandbox and production, or is this irrelevant, and StoreKit2 handles prod and sandbox environment under the hood automatically?

StoreKit2: Do I need to implement environment check?
 
 
Q