A:No, the trap does not have to be directly beneath the sink. You should be sure to maintain the proper slope on the pipe (1/4 inch per foot), and make sure that the trap will still be accessible afterwards (in case you need to take it apart for cleaning or repair).
Hope that helps.