Can I create temporary table within case statement..?

if yes please explain me with example.

actually I want to do something like this..

```
declare @a int = 1

select case when @a = 1 then
'yes'
else
'no'
end

```

if first case execute then I would like to create temp table with that condition which is require to manipulate some business data.

in else case I would like to create another table with other condition to manipulate business data.