Having problem with tooth filling. Would it be close to the nerve?

Can deep filling close to nerve cause sensitivity?