Yes, it is possible to assign permission to Apex classes and Visualforce pages. 


For Apex Classes:

  • Go to Mass Assign Apex Classes Tab in the Mass Assign Permissions app.


For Visualforce Pages:

  • Go to Mass Assign Visualforce Page Permissions Tab n the Mass Assign Permissions app.