Yes, of course! If you have a dietary restriction, any good host will be accommodating to this. You can let the host know you will bring a dish to pass or that you will be packing your own meal due to your dietary needs.