Is it possible to use dll which is in D365 to AX?
Can you elaborate your question? I particularly don't understand what you mean by "to AX".
Also, you should tell us whether you mean a library already included in AX installation, something developed by yourself or a third-party library. It also depends very much on the content of the DLL file. For instance, a library for a wrong processor architecture won't work.
Business Applications communities