Technically yes, but the Elitebook Folio 1040 G1 has a soldered RAM installed, which means that the device cannot be upgraded (the notebook does not have a RAM expansion socket). I would therefore try to use the device differently, sell it and possibly choose another model that could be upgraded.
https://www.crucial.com/compatible...In 14 inches, for example, there is the HP ProBook 445 G8, which costs around 800 francs and can be upgraded to 2 x 32 GB RAM.