>>8
No, that is not permitted. Once you include AGPL code in your software, the entire code base has to be licensed under AGPL when distributed. That is the "viral" nature of the AGPL. Refer to ยง5c in https://www.gnu.org/licenses/agpl-3.0.en.html
Related reading: https://stackoverflow.com/questions/11819831/including-gpl-external-library-in-mit-code