Possibly, but I'm not sure why you'd want to. I don't think the 3040 ships with anything less than an i5, so the Pentium would be a huge downgrade?
EDIT: I'm fairly certain it has a 1xx chipset, maybe H110, so it should support 7th gen chips such as the Pentium so long as Dell has provided an updated BIOS that adds support for them.