yes, you do in the case you describe.

168.23.87 (no period) could mean xxx.168.23.87 or 168.23.87.xxx. but 168.23.87. (period) means 168.23.87.xxx. The period on that end means explicitly match to that end. A period on the front would match to the other end.