Is it OK to accept that your name be included in the authors list of a paper you have done next to nothing about?
No

This is called "gift authorship" and is generally regarded as unethical.

The widely accepted Vancouver Protocol gives the following conditions for authorship:


  The ICMJE recommends that authorship be based on the following 4 criteria:
  
  
  Substantial contributions to the conception or design of the work; or the acquisition, analysis, or interpretation of data for the work; AND
  Drafting the work or revising it critically for important intellectual content; AND
  Final approval of the version to be published; AND
  Agreement to be accountable for all aspects of the work in ensuring that questions related to the accuracy or integrity of any part of the work are appropriately investigated and resolved. 
  


If you have not done those four things, then it is not ethical to be listed as an author.