Sure you can:
function doIfTrue()
{
byId("nav_sub_villor").style.display='block';
// call other function
}
function doIfFalse()
{
byId("nav_sub_villor").style.display='none';
}
(category=="Villor/Radhus mm") ? doIfTrue() : doIfFalse();
Note that an expression something like condition ? statement; statement : statement; is illegal in JS.
However if you really need to keep it a one-liner, you can push it all into an anonymous function:
(category=="Villor/Radhus mm") ? function() { byId("nav_sub_villor").style.display='block'; doOtherStuff();}() : byId("nav_sub_villor").style.display='none';