If a man stroked his penis and possibly had precum on his hand. And then inserted one finger in you, could you contract hiv?

No. In a situation like this, expect the guy to have some of his lubricant on the finger. People are not catching HIV this way any more than they are getting pregnant that way. It is wise to be checked once a year for HIV in any case. Congratulations on having shared love.