Absolutely! Optimism is entirely compatible with all Solidity smart contracts and Ethereum libraries. Given that Optimism functions as a second layer atop the primary Ethereum network, it can employ the Ethereum Virtual Machine in the same way as Ethereum does.