Will turnip greens and cornbread make me gain weight?

Depends. That depends on how they're prepared and how much you eat. Most foods have some calorie content, which depends on the ingredients (like butter and corn in the cornbread) and how you cook them (like deep fried or covered in butter). Depending on factors like age and activity, you can definitely gain weight eating only greens and cornbread.