Can I get information from the magento form through the objectmanager?

Good morning I have the question of whether I can obtain data from the sales information using the objectmanager using $ _POST attached my code to tell me if it is correct. public function tomval(){ #fucnion que se encarga de hacer la conexion $objectmanager = \Magento\Framework\App\ObjectManager::getInstance(); $resource = $objectManager->get(‘Magento\Framework\App\ResourceConnection’); $connection = $resource->getConnection(); $day = date(Y,m,d);…