Does eating something before taking mdma effect the duration ?

So as asked i want to know if eating something before taking pills effect the duration or the high of mdma