Log analytics + javascript tracking

I would like to import my server logs to piwik, since there are quite a few visits that is missed by the javascript method. Before doing that I wanted to know if both methods can be implemented simultaneously, without giving rise to duplicate entries in the visitor log and statistics.