Framework for setting unified margins and paddings

Are there any limitations of setting all margins and paddings values(in the framework) as multiple of some base unit(like 1em or 1rem)?

Is there any issues of setting all px values to em/rem in mobile (2x / HiDPI devices)?