Yes you can eat some pasta if you have diabetes but just eat the pasta in moderation and don't eat too much pasta in too short of time otherwise you could raise your blood glucose levels.
Pasta is pretty low in terms of its glycemic impact but since it contains carbohydrates which when eaten too much can raise your blood glucose levels which isn't good for a diabetic.
But yes as a diabetic you can eat Pasta in moderation and you'll be okay.