Yes, but please follow this guide: https://h20195.www2.hpe.com/v2/getpdf.aspx/a00038086enw.pdf
Big caveat is that if you plan to do this as part of a data in place upgrade, the you must be using Virtual storage on the 2040 as the 5th generation arrays do not support Linear. There are more gotchas than that, but all are in the white paper.
Big caveat is that if you plan to do this as part of a data in place upgrade, the you must be using Virtual storage on the 2040 as the 5th generation arrays do not support Linear. There are more gotchas than that, but all are in the white paper.