It will.
If you have set in php settings - phpfpm with apache and in server settings - serve static files by nginx, it should work correctly. If you have any problems, open permalink settings in WordPress and apply pretty URLs again, that will set the corect rules in htaccess.
If you set in php...