Yep I have followed a diet to gain weight before. What I did was make sure I ate foods high in calories and in bulk. I also drank shakes made with heavy whipping cream. I used an app to track how many calories I was eating.