Yes, if you hit the net during a rally, that can be counted as a legitimate hit. However, when you are serving, the ball that hits the net will be considered “let” serve and does not count as a hit.