Yes, you can also sockread to a binary variable.
/help binary variables
/help /sockread
Note that in your example, you are not declaring %var as a local variable prior to sockreading, which means the sockread creates a global variable in your variables list which is left trailing after the script finishes.
In conclusion, you can only sockread to either a %variable or a &binvar, nothing else.