I believe this is possible, yes.
You would then be charging for just your bit of the program, and including a dll that users could get for free in the download. Just so long a you say that that dll is released under the GPL licence and include a copy of the licence it should be fine.