Sure, just apply a default to the parameter
Create procedure myprocedure @var1 int, @var2 int = 0
as
if @var2 <> 0
begin
Do something
end
Else
Begin
Do something else.
End
For this procedure to execute you Must supply a value for @Var1, but you are not required to pass a value for @var2