Yes, a forest can be next to a mountain. Mountains can have several types of terrain on them, including forests. In these cases the mountain can be located next to the forest or the mountain can have different types of terrain creating some areas with forest.