It is contingent on the course and institution. Some institutions provide online Japanese courses for free or at a modest fee.