No, you cannot buy a Japan Rail Pass in Japan.
A Rail Pass Exchange Order MUST be purchased outside Japan, prior to your trip.
You then present the Exchange Order at a major station in Japan in order to obtain the actual Rail Pass, which is valid for the designated period (consecutive days).
Information about locations in Japan where the Rail Pass Exchange Order can be exchanged for the actual Pass: japanrailpass.net